package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;

import java.security.Permission;
import java.util.List;
import java.util.Map;

public interface RoleSettingDao {

    public Page<Role> findByCondition(String queryString);

    public List<Permission> findAllPermissions();

    public List<Menu> findAllmenus();

    public void add(Role role);

    void setRoleAndpermissions(Map<String, Integer> map);

    void setRoleAndmenus(Map<String, Integer> map);

    public void deletePermissions(Integer id);

    public void deleteMenus(Integer id);

    public Role findRoleById(int id);

    List<Menu> findByRoleId(Integer id);

    public void delete(int id);
}
